package cn.kgc.fxy.smbms.mapper;

import cn.kgc.fxy.smbms.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    User selectLogin(@Param("userCode")String userCode, @Param("userPassword")String userPassword);

    List<User> selectAllUser(User condition);

    User selectByUserPassword(Long userId);

    void updatePwd(@Param("userPassword") String userPassword,@Param("userId") Long userId);

    User selectView(Long userId);

    void insertUser(User user);
    Integer selectUserCount(String userCode);

    void updateUser(User user);

    void deleteUser(Long userId);

    User selectById(Long userId);
}
